package com.wm.homework03;

public class Sum extends Calculator {
    @Override
    public void calculate() {
        double sum = super.getFristNum() + super.getSecondNum();
        System.out.println("两个数之和为:" + sum);
    }

    public Sum() {
    }

    public Sum(double fristNum, double secondNum) {
        super(fristNum, secondNum);
    }
}
